function hDeploy = getDeployFunc(bGPU)
if nargin < 1, bGPU = mycaffe.useGPU; end

vl_setupnn;
% addpath('util/');

model = load(fullfile(VDSR0.path, 'VDSR.mat'));
net = vl_simplenn_tidy(model.net);
net.layers = net.layers(1 : end-1);

hDeploy = @(x) VDSR0.deploy(net, x, bGPU);
